package com.groupbuying.settleproducer.connector;

import com.groupbuying.settleproducer.utils.R;
import com.groupbuying.settleproducer.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author cuich
 * @Description 调用商户中心接口
 * @Date 2019/5/10 10:07
 **/
@Service
@FeignClient("bus-store-internal")
public interface StoreInternalFeign {
    //通过收银台Id获取该商户的退款账期
    @RequestMapping(value = "/storeMainInfo/getPaymentDayByCounterId", method = RequestMethod.GET)
    ApiResult getPaymentDayByCounterId(@RequestParam("counterId") String counterId);
}
